const mongoose = require('mongoose')

function createConnect(){
  mongoose.connect('mongodb://127.0.0.1:27017/ly-project')

  const db = mongoose.connection

  db.once('open',()=>{
    console.log('数据库启动成功');
  })
}


module.exports={
  createConnect
}
